//
//  AccelerometerSensor.h
//  测试demo
//
//  Created by ycx on 2019/7/2.
//  Copyright © 2019 ycx. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreMotion/CoreMotion.h>
NS_ASSUME_NONNULL_BEGIN
typedef void (^DeviceMotionBlock)(CMDeviceMotion * motion);

@interface AccelerometerSensor : NSObject
-(void)initialization:(DeviceMotionBlock)block;
-(void)stopDeviceMotion;
@end

NS_ASSUME_NONNULL_END
